package com.laich.springcloud;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.laich.springcloud.entity.User;
import com.laich.springcloud.service.UserService;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = StartUserServiceApplication.class)
public class UserTs {
	@Autowired
	UserService userService;

	@Test
	public void tUser() {
		User user = userService.findByUsername("laich");
		System.err.println(user.getPassword());
	}
}
